import { _decorator, Component, Label, log, math, Node } from "cc";
import { Item } from "./ItemList";
const { ccclass, property } = _decorator;

@ccclass("itemLabel")
export class itemLabel extends Component {
  @property(Label)
  public itemPrice: Label | null = null;
  start() {}
  // init(data: Item) {
  //   this.itemPrice.string = data.itemName;
  //   log(data.itemName);
  // }
  init(y: number, data: any) {
    this.itemPrice.string = data;

    log(y, data);
  }
  update(deltaTime: number) {}
}
